package com.gome.base;

import com.gome.vue4j.core.AbstractVue4jComponent;
import com.gome.vue4j.core.FXMLPath;
import com.gome.vue4j.core.Vue4jLoader;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXML;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class L1Z2Bind extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        Scene scene = Vue4jLoader.loadScene(new L1Z2BindComponent(),320,600);
        stage.setScene(scene);
        stage.setTitle("简单的数据绑定");
        stage.show();
    }
}

@FXMLPath("/base/l1z2-view.fxml")
class L1Z2BindComponent extends AbstractVue4jComponent {
    @FXML
    StringProperty message = new SimpleStringProperty("简单数据绑定");
}

